<template>
  <div>
    <van-nav-bar title="收货地址" left-arrow @click-left="$router.go(-1)" />
    <div class="main">
      <div class="image">
        <img src="https://img1.baidu.com/it/u=358762235,736393980&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500" alt="" />
      </div>
      <p>暂无数据~</p>
      <button @click="shouhuodi">新增收货地址</button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  methods: {
    shouhuodi() {
      this.$router.push({ name: 'shouhuodi' });
    }
  },
};
</script>

<style scoped lang="scss">
.main {
  width: 375px;
  height: 694px;
  line-height: 20px;
  background-color: rgba(255, 255, 255, 100);
  text-align: center;
  display: flex;
  flex-direction: column;
  margin: 0 auto;

  .image {
    width: 200px;
    height: 200px;
    margin: 133px auto 0;

    img {
      width: 100%;
    }
  }

  p {
    margin: 20px auto 0;
    width: 64px;
    height: 20px;
    color: rgba(108, 108, 108, 100);
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    font-family: SourceHanSansSC-regular;
  }

  button {
    width: 200px;
    height: 40px;
    border-radius: 4px;
    background-color: rgba(164, 173, 179, 100);
    color: rgba(255, 255, 255, 100);
    font-size: 14px;
    text-align: center;
    font-family: Microsoft Yahei;
    border: none;
    margin: 20px auto 0;
  }
}
</style>
